package controler;

import java.awt.*;

import javax.swing.*;
import model.*;

public class Applet extends JApplet 
{
	private static final int height_carte = 601;
	private static final int width_carte = 401;
	
	private static final int height_applet = 800;
	private static final int width_applet = 600;
	
	private Panneau_loupe_moins panel_loupe_moins;
	private Panneau_loupe_plus panel_loupe_plus;
	
	private Panneau_carte panel_carte;
	
	public void init()
	{
		this.setSize(height_applet, width_applet);
		
		this.setLayout(null); 
		
		this.panel_carte = new Panneau_carte(null);
		this.panel_carte.setBackground(Color.BLUE);
		this.panel_carte.setBounds(40, 0, height_carte, width_carte);
		this.add(this.panel_carte);
		
		this.panel_loupe_moins = new Panneau_loupe_moins();
		this.panel_loupe_moins.setBounds(10, 20, 20, 20);
		this.add(this.panel_loupe_moins);
		this.panel_loupe_moins.addMouseListener(new ActionZoom(this.panel_carte, this.panel_loupe_moins));
		
		this.panel_loupe_plus = new Panneau_loupe_plus();
		this.panel_loupe_plus.setBounds(10, 50, 20, 20);
		this.add(this.panel_loupe_plus);
		this.panel_loupe_plus.addMouseListener(new ActionZoom(this.panel_carte, this.panel_loupe_plus));
	}
}
